package com.project.course.service.imp;

import com.project.course.entity.User;
import com.project.course.mapper.UserMapper;
import com.project.course.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 用户信息接口实现类
 * @Author: zhangqingbiao
 * @Date: 2021/3/31 17:30
 */
@Service
public class UserServiceImpl implements UserService {
    // 引入dao数据持久层接口
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> selectUserByCondition(String name, String address, String description) {
        List<User> users = userMapper.selectUserByCondition(name,address,description);
        System.out.println(users.toString());

        return users;
    }


}
